# https://cloud.siliconflow.cn/account/ak
from openai import OpenAI

client = OpenAI(api_key="sk-xgxbqajfxbsfptqumdbsrtiakcisgochhzyltatkcqtarlvq", base_url="https://api.siliconflow.cn/v1")
response = client.chat.completions.create(
    model='deepseek-ai/DeepSeek-V3',  # deepseek-ai/DeepSeek-R1
    messages=[
        {'role': 'user',
        'content': "中国大模型行业2025年将会迎来哪些机遇和挑战"}
    ],
    stream=True
)

for chunk in response:
    print(chunk.choices[0].delta.content, end='')